<template>
	<div class="container">
		<category title="美食" >
			<img src="https://img1.baidu.com/it/u=3282457405,235959913&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500" alt="">
		</category>
		<category title="游戏" :listData="games">
			<ul>
				<li v-for="(item,index) in games" :key="index">{{ item }}</li>
			</ul>
		</category>
		<category title="电影" :listData="films">
			<!--control：表示是否可以播放-->
			<video controls src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"></video>
		</category>
	</div>
</template>

<script>
	import category from './components/Category.vue'
	export default {
		name:'App',
		components:{category},
		data(){
			return{
				foods:['火锅','烧烤','小龙虾','牛排'],
				games:['红色警戒','穿越火线','劲舞团','超级玛丽'],
				films:['《教父》','《拆弹专家》','《你好，李焕英》','《尚硅谷》']
			}
		}
	}
</script>

<style scoped>
	.container{
		display: flex;
		justify-content: space-around;
		
	}
	img{
		width: 100%;
	}
	
	video{
		width: 100%;
	}
</style>